package com.tonann.app.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tonann.common.annotation.Excel;
import com.tonann.common.core.domain.BaseEntity;

/**
 * 故障诊断规则对象 app_fault_rule
 * 
 * @author tonann
 * @date 2022-10-15
 */
public class AppFaultRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long faultRuleId;

    /** 规则编码 */
    @Excel(name = "规则编码")
    private String ruleCode;

    /** 规则名字 */
    @Excel(name = "规则名字")
    private String ruleName;

    /** 阈值上限 */
    @Excel(name = "阈值上限")
    private String ruleValueToplimit;

    /** 阈值下限 */
    @Excel(name = "阈值下限")
    private String ruleValueBottomlimit;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String ruleDescribe;

    /** 故障处理预案 */
    @Excel(name = "故障处理预案")
    private String rulePlan;

    /** 故障等级 */
    @Excel(name = "故障等级")
    private String faultLevel;

    public void setFaultRuleId(Long faultRuleId) 
    {
        this.faultRuleId = faultRuleId;
    }

    public Long getFaultRuleId() 
    {
        return faultRuleId;
    }
    public void setRuleCode(String ruleCode) 
    {
        this.ruleCode = ruleCode;
    }

    public String getRuleCode() 
    {
        return ruleCode;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setRuleValueToplimit(String ruleValueToplimit) 
    {
        this.ruleValueToplimit = ruleValueToplimit;
    }

    public String getRuleValueToplimit() 
    {
        return ruleValueToplimit;
    }
    public void setRuleValueBottomlimit(String ruleValueBottomlimit) 
    {
        this.ruleValueBottomlimit = ruleValueBottomlimit;
    }

    public String getRuleValueBottomlimit() 
    {
        return ruleValueBottomlimit;
    }
    public void setRuleDescribe(String ruleDescribe) 
    {
        this.ruleDescribe = ruleDescribe;
    }

    public String getRuleDescribe() 
    {
        return ruleDescribe;
    }
    public void setRulePlan(String rulePlan) 
    {
        this.rulePlan = rulePlan;
    }

    public String getRulePlan() 
    {
        return rulePlan;
    }
    public void setFaultLevel(String faultLevel)
    {
        this.faultLevel = faultLevel;
    }

    public String getFaultLevel()
    {
        return faultLevel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("faultRuleId", getFaultRuleId())
            .append("ruleCode", getRuleCode())
            .append("ruleName", getRuleName())
            .append("ruleValueToplimit", getRuleValueToplimit())
            .append("ruleValueBottomlimit", getRuleValueBottomlimit())
            .append("ruleDescribe", getRuleDescribe())
            .append("rulePlan", getRulePlan())
            .append("faultLevel", getFaultLevel())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
